home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VBUG.ZIP / VBUG.DOC < prev   
Text File  |  1989-12-26  |  29KB  |  586 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                         VBUG Users Manual V1.2
  7.                                                        
  8.                                                        
  9.                                                        
  10.                                                        
  11.                                                        
  12.                                                        
  13.                                                        
  14.                                                        
  15.                                                        
  16.                                                        
  17.                                                        
  18.                                                        
  19.                                                        
  20.                                                        
  21.                                                        
  22.                                                        
  23.                                                        
  24.  
  25.                                 VBUG
  26.                      Visual DOS DEBUG Interface Program
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                              Users Manual
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                  Copyright 1989 by Advantage Systems
  47.                             1 November, 1989
  48.  
  49.                                                        
  50.                                                        
  51.                                                        
  52.                                                        
  53.                                                        
  54.                                                        
  55.                                                        
  56.                                                        
  57.  
  58.  
  59.  
  60.  
  61.                                   1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.                         VBUG Users Manual V1.2
  72.                                                                            
  73.                                                                            
  74.                                                                            
  75.                                                                            
  76.                                                                            
  77.                                                                            
  78.                                                                            
  79.                           Table of Contents                                
  80.                                                                            
  81.                                                                            
  82.                                                                            
  83.                                                                            
  84.                 I.   Introduction and Overview          Page               
  85.                                                                            
  86.                         A. Purpose                        3                
  87.                         B. Installation                   3                
  88.                         C. System Requirements            3                
  89.                         D. Overview of Features           3
  90.                         E. Concept of Operation           4                
  91.                                                                            
  92.                 II.  Description of Features                               
  93.                                                                            
  94.                         A. VBUG Editing Features          5                
  95.                         B. VBUG Display Features          5                
  96.                         C. Function Key Useage            5                
  97.                         D. Command Help                   6                
  98.                         E. Prior Commands                 7                
  99.                         F. Dump/Unassemble Features       7                
  100.                         G. Listing Code to Printer        7                
  101.                                                                            
  102.                 III. Administration                                        
  103.                                                                            
  104.                         A. Warranty                       8                
  105.                         B. Support                        8                
  106.                         C. Future Enhancements            8                
  107.                                                                            
  108.                 IV.  Registration Form                    9                
  109.                                                                            
  110.                                                                            
  111.                                                                            
  112.                                                                            
  113.                                                                            
  114.                                                                            
  115.                                                                            
  116.                                                                            
  117.                                                                            
  118.                                                                            
  119.                                                                            
  120.                                                                            
  121.                                                                            
  122.  
  123.  
  124.  
  125.  
  126.                                   2
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                         VBUG Users Manual V1.2
  137.  
  138.                      I. INTRODUCTION and OVERVIEW
  139.  
  140.                             A. Purpose
  141.  
  142.              VBUG is a visual interface to the DOS Debug program.
  143.         It provides a continuous display of the CPU registers and
  144.         allows function key input for common commands.  VBUG also
  145.         provides you with complete editing capability for all input
  146.         as well as recall of prior commands.  VBUG also provides
  147.         command help and paging displays to provide a friendly
  148.         visual interface for debugging without having to go to a
  149.         memory intensive program such as CodeView.
  150.  
  151.              VBUG is provided for your use without charge.  However,
  152.         if you find that VBUG improves your productivity, and that
  153.         you use it on a regular basis, a contribution of $19.95 is
  154.         suggested to allow for development of future enhancements.
  155.         Contributions should be sent directly to the author at:
  156.                                                                         
  157.                         Advantage Systems                               
  158.                         1981 NE Brogden Ct.                             
  159.                         Hillsboro, Oregon 97124
  160.                                                                         
  161.              All users of VBUG are granted permission to copy and       
  162.         distribute copies of the program and documentation to others    
  163.         providing no charges are involved.  Distribution costs may      
  164.         be charged recipients provided they do not exceed $7 per copy.  
  165.                                                                         
  166.                                                                         
  167.                            B. Installation                              
  168.                                                                         
  169.              VBUG should be invoked from the DOS command line by simply 
  170.         typing: VBUG and hitting enter.   VBUG may also be invoked      
  171.         with a file to be debugged by following VBUG with the full      
  172.         filename to be debugged, as follows: VBUG filename (then enter).
  173.         Path names may be included with the filename, if desired.
  174.  
  175.                         C. System Requirements
  176.  
  177.              VBUG is an extension to the DOS debug program and will use
  178.         approximately 22k of memory to produce its features.  It        
  179.         will function with all types of video adapters and with all     
  180.         versions of DOS (except DOS 1.x).                               
  181.                                                                         
  182.  
  183.                                                                         
  184.                                                                         
  185.                                                                         
  186.                                                                         
  187.  
  188.  
  189.  
  190.  
  191.                                   3
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.                         VBUG Users Manual  V1.2
  202.                                                                            
  203.                                                                            
  204.                         D. Overview of Features                            
  205.                                                                            
  206.              VBUG is a visual interface to the DOS debug program           
  207.         providing a screen oriented visual debugging enviornment.          
  208.         The following features are provided:                               
  209.                                                                            
  210.                 1. Full editing of all command input as well as            
  211.         recall and display for editing of 10 prior commands.               
  212.                                                                            
  213.                 2. Constant display of all CPU registers as well           
  214.         as the current file being edited (and its size if saved).          
  215.                                                                            
  216.                 3. Utilization of the Function keys to assist in           
  217.         common command input with a display of function key useage.        
  218.                                                                            
  219.                 4. A help display of the syntax of all debug commands
  220.         is available for quick review at any time.                         
  221.                                                                            
  222.                 5. Dump and Unassemble commands provide paging displays    
  223.         for ease of use, and unassembled code can be listed on the printer.
  224.                                                                            
  225.                 6. File size can be saved on entry via a function key      
  226.         and then reset via a function key prior to storing the edited file.
  227.                                                                            
  228.                 7. Full use of color is provided throughout all            
  229.         displays to enhance the visual interface concept.                  
  230.                                                                            
  231.                        E. Concept of Operation                             
  232.                                                                            
  233.              VBUG operates as an enhancement to your current debug         
  234.         program which interfaces to the debug programs request for an      
  235.         input string.   Other interfaces to debug are also provided        
  236.         to allow correct operation of all debug operations.                
  237.                                                                            
  238.              Since it incorporates a modified version of debug,            
  239.         users are cautioned that they must be the owners of a              
  240.         valid version of debug prior to use of the VBUG program.           
  241.         However, since debug is a standard issue with all versions         
  242.         of DOS, users will have no problem meeting this requirement.
  243.                                                                            
  244.         NOTE:  Users of CGA cards and monochrome monitors can modify       
  245.         the program to display correctly by using debug as follows:        
  246.                         DEBUG VBUG.COM                                     
  247.                         E 30E0 1                                           
  248.                         W                                                  
  249.                         Q                                                  
  250.         This will force the program to always display in one color.        
  251.                                                                            
  252.  
  253.  
  254.  
  255.  
  256.                                   4
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.                         VBUG Users Manual  V1.2
  267.                                                                   
  268.                       II. DESCRIPTION OF FEATURES                 
  269.                                                                   
  270.                         A. VBUG Editing Features                  
  271.                                                                   
  272.              VBUG provides the full range of editing features for 
  273.         use in  'creating' your  command string.  In addition to  
  274.         normal keystroke editing and the use of the Backspace key 
  275.         to 'rubout' as you backspace, the cursor keys allow you   
  276.         to move to any portion of your input string for 'editing'.
  277.         The Home key moves you to the start of the input string,  
  278.         and the End key moves you to the end of your string.  In  
  279.         addition, for long input strings, you may 'tab' forward   
  280.         with the Tab key and 'tab' backwards with the shift key   
  281.         and the Tab key.  And finally, input may be done in the   
  282.         standard 'Insert' mode which inserts keystrokes between   
  283.         existing characters, or in the 'replacement' mode which   
  284.         overwrites existing characters.  The current mode is      
  285.         always displayed, and the mode can be changed by hitting  
  286.         the Ins key.                                              
  287.                                                                   
  288.                          B. VBUG Display Features                 
  289.                                                                   
  290.              The VBUG display is a visual display of the internal 
  291.         CPU registers of your computer.  Shown on the left side   
  292.         of the display are the general registers on the top and   
  293.         the special registers in their normal association on the  
  294.         bottom.  Shown on the right side is the flag register on  
  295.         the top in both a boolean display and the normal debug    
  296.         type of display.  The current code at CS:IP is shown on   
  297.         the bottom right of the display.                          
  298.              The top of the display shows the current file name   
  299.         in use, and if used also shows the file sizes as they     
  300.         are stored.  Finally, the F-key line displays the setup   
  301.         of the F-keys.  These keys are described below.           
  302.                                                                   
  303.                            C. Function Key Useage                 
  304.                                                                   
  305.              The function keys are used to invoke VDBUG features  
  306.         as well as to provide input assistance.  Each key and its 
  307.         useage is described below:                                
  308.                                                                   
  309.                 F1:     The F1 key invokes the VBUG command syntax
  310.                         help screen.  This screen is designed to  
  311.                         provide you with a quick reference to the 
  312.                         debug command syntax.  After viewing the  
  313.                         help screen, you can restore the register 
  314.                         display by simply hitting the enter key.  
  315.                                                                   
  316.  
  317.  
  318.  
  319.  
  320.  
  321.                                   5
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.                         VBUG Users Manual  V1.2
  332.                                                                           
  333.                 F2:     The F2 key recalls a screenful of your prior      
  334.                         command entries.  These prior commands can        
  335.                         be 'selected' by moving the cursor down           
  336.                         (or up) keys to the appropriate command.          
  337.                         The command can then be edited as desired         
  338.                         prior to 'inputting' it to VBUG.  The Escape      
  339.                         key is used to return you to normal entry.        
  340.                                                                           
  341.                 F3:     Allows tracing of a single line of code.          
  342.                         After execution of the code line, the             
  343.                         register display is updated.                      
  344.                                                                           
  345.                 F4:     Allows program execution from the current         
  346.                         CS:IP setting.                                    
  347.                                                                           
  348.                 F5:     Allows tracing of a single line of code           
  349.                         'calls' or 'interrupts'.  Registers are updated.
  350.                                                                           
  351.                 F6:     Saves the current BX/CX registers.  Upon          
  352.                         'loading' a file these show the file size.        
  353.                                                                           
  354.                 F7:     Unassembles a page starting at CS:IP.  More       
  355.                         'pages' can be displayed with the F9 key.         
  356.                                                                           
  357.                 F8:     Restores the BX/CX registers to the values        
  358.                         stored by the F6 key.  If changed by debugging,   
  359.                         these values must be reset prior to writing       
  360.                         the file to disk as they are used to control      
  361.                         the actual file size for writing operations.      
  362.                                                                           
  363.                 F9:     Used to display another 'page' of code.           
  364.                                                                           
  365.                 F10:    Exits from VBUG without saving the current        
  366.                         file being debugged.                              
  367.                                                                           
  368.                              D. Command Help                              
  369.                                                                           
  370.              As described above, the F1 key provides a summary of the     
  371.         syntax of debug commands.  The display is arranged to allow you   
  372.         to quickly view the syntax for all debug commands.
  373.                                                                           
  374.              In addition to the command sytax displayed, the help screen  
  375.         also indicates the default parameters assumed by the debug        
  376.         program and defines the parameters used by all debug commands.    
  377.                                                                           
  378.                                                                           
  379.                                                                           
  380.                                                                           
  381.                                                                           
  382.  
  383.  
  384.  
  385.  
  386.                                   6
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.                         VBUG Users Manual  V1.2
  397.                                                                           
  398.                            E. Prior Commands                              
  399.                                                                           
  400.              The F2 key provides for recall of a screenful of your        
  401.         prior 'commands'.  Any of these entries can be 'selected'         
  402.         simply by using the Up/Down cursor key to move to the             
  403.         desired selection.  That selection is then automatically          
  404.         transferred to the 'command window' for editing.  If you          
  405.         simply wish to re-enter that command, just hit the Enter          
  406.         key and you are done.  However, the commands can still be         
  407.         'edited' prior to submission to DOS.  This feature is very        
  408.         useful in tracing thru loops as you can stop in the middle        
  409.         of a loop, trace down one line, then restart at that point        
  410.         and stop on the prior line.  The next time through the            
  411.         loop you simply recall these commands and re-execute them!        
  412.                                                                           
  413.                        F. Paging Features                                 
  414.                                                                           
  415.              To facilitate viewing, the Dump command and the              
  416.         Unassembe commands provide paging features.  Once invoked,        
  417.         the dump command (without any length parameters) will             
  418.         automatically present a 'page' of data.  The PgDn key will        
  419.         then present the next page of data, and the PgUp key will
  420.         also present the previous page.  This allows you to quickly       
  421.         'scroll' through your data.                                       
  422.                                                                           
  423.              In addition, the Unassemble command will also 'page'.        
  424.         You may unassemble a page of code by entering the unassemble      
  425.         command and a starting address.  The next 'page' of code can      
  426.         be displayed by simply hitting the F9 key.  Thus code can be      
  427.         quickly displayed in visual pages.  If you wish to view the       
  428.         code at CS:IP, use the F7 key to display a page of code from      
  429.         CS:IP on.  F9 will then continue the paged display.               
  430.                                                                           
  431.              Note that the F2 key displays prior commands and these       
  432.         can be selected with the Up and Down cursor keys.  Thus           
  433.         each display 'mode' has its own navigation keys: Unassembe        
  434.         uses the F7 and F9 keys; Dump uses the PgDn and PgUp keys;        
  435.         and prior commands use the Up and Down cursor keys.               
  436.                                                                           
  437.                         G. Listing Code to Printer                        
  438.  
  439.              Code can be listed to the printer with the 'K' command.
  440.         The syntax for this new command is: K Range, where Range can
  441.         be either a Start-Address followed by an Ending Offset, or
  442.         a Start-Address L Bytes to unassemble.  The unassembled listing
  443.         will be of the form:  Offset Inst Operands   ;.  This allows
  444.         'comments' to be conveniently added and allows 'labels' to be
  445.         indicated by adding H(Offset): or by highligting that instruction.
  446.         This 'Kopy' command allows sections of code to be listed to the
  447.         printer to aid in debugging, thus the listed code is very similar
  448.         in form to the actual assembler code to make comparisons easy.
  449.  
  450.  
  451.                                   7
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.                         VBUG Users Manual  V1.2
  462.  
  463.                           III. ADMINISTRATION
  464.  
  465.                              A. Warranty
  466.  
  467.              As distributed, VBUG is supplied without warranty.  Use of
  468.         this program is entirely voluntary and all risk is borne by the
  469.         user.  There is no warranty, implied or expressed, by the use    
  470.         of this product.  In no event will the designer of this product  
  471.         be liable for any damages arising out of the use of this product.
  472.         Useage of this product is agreement to the above limitations.    
  473.                                                                          
  474.                               B. Support                                 
  475.                                                                          
  476.              Because of the method of distribution, no direct support    
  477.         can be provided to end users.  However, all questions, comments, 
  478.         or inquiries will be addressed given the time and resources      
  479.         available to the author.                                         
  480.                                                                          
  481.                          C. Future Enhancements                          
  482.                                                                          
  483.              Given any support by the user community, the following      
  484.         enhancements to VBUG are planned.  You can assist in this        
  485.         development by registering with the author and indicating        
  486.         your preferred priority for any(or all) of these enhancements.   
  487.         Comments concerning other desired features is encouraged.        
  488.                                                                          
  489.                 1. Allow 'watchpoints' via a View command.  These
  490.         data areas will automatically be displayed after each Trace,
  491.         Proceed, or stop command.
  492.  
  493.                 2. Allow a selection of the type of 'breakpoint' after
  494.         each Trace or Proceed to include:  Pause before redisplaying
  495.         registers, shift to graphics mode then pause, or addon display
  496.         of numeric coprocessor registers.
  497.  
  498.                 3. Adjust the seach command to dump a screenful of
  499.         data around each match.
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.                                   8
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.                         VBUG Users Manual  V1.2
  527.  
  528.                          IV. REGISTRATION FORM
  529.  
  530.         Please register me as a user/supporter of the VBUG program.
  531.         Enclosed is $19.95 in check or money order payable to:
  532.                                                                    
  533.                         ADVANTAGE SYSTEMS                          
  534.                         1981 NE Brogden Ct.                        
  535.                         Hillsboro, Or. 97124                       
  536.  
  537.  
  538.  
  539.         NAME______________________________________________________
  540.  
  541.         ADDRESS___________________________________________________
  542.  
  543.                ___________________________________________________
  544.  
  545.                ___________________________________________________
  546.  
  547.                                                                    
  548.                                                                    
  549.         COMMENTS__________________________________________________ 
  550.  
  551.                 __________________________________________________ 
  552.                                                                    
  553.                 __________________________________________________ 
  554.                                                                    
  555.                 __________________________________________________ 
  556.                                                                    
  557.                 __________________________________________________ 
  558.                                                                    
  559.                 __________________________________________________ 
  560.                                                                    
  561.                 __________________________________________________ 
  562.                                                                    
  563.                 __________________________________________________ 
  564.                                                                    
  565.                 __________________________________________________ 
  566.                                                                    
  567.                 __________________________________________________
  568.                                                                    
  569.                                                                    
  570.                                                                    
  571.                                                                    
  572.                                                                    
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.                                   9
  582.  
  583.  
  584.  
  585.  
  586.